From e0cbf70b096909d86f55142aed77168f501c2f92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Minisini?= Date: Sat, 13 Dec 2025 22:03:16 +0100 Subject: [PATCH] Make 'gb.pdf' compile with poppler 25.12.0. [GB.PDF] * BUG: Make 'gb.pdf' compile with poppler 25.12.0. Origin: https://gitlab.com/gambas/gambas/-/commit/976e7a42f651ebcccc5e6835329889df60a03ed1 Gbp-Pq: Name Make-gb.pdf-compile-with-poppler-25.12.0.patch --- gb.pdf/configure.ac | 2 ++ gb.pdf/src/CPdfDocument.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/gb.pdf/configure.ac b/gb.pdf/configure.ac index aabf3f2e..0ed70ba9 100644 --- a/gb.pdf/configure.ac +++ b/gb.pdf/configure.ac @@ -44,6 +44,8 @@ if test "$have_poppler" = "yes"; then AC_DEFINE_UNQUOTED(POPPLER_VERSION_24_12_0, $((1-$?)), Poppler version >= 24.12.0) $PKG_CONFIG --atleast-version=25.01.0 poppler AC_DEFINE_UNQUOTED(POPPLER_VERSION_25_01_0, $((1-$?)), Poppler version >= 25.01.0) + $PKG_CONFIG --atleast-version=25.12.0 poppler + AC_DEFINE_UNQUOTED(POPPLER_VERSION_25_12_0, $((1-$?)), Poppler version >= 25.12.0) fi AC_CONFIG_FILES([\ diff --git a/gb.pdf/src/CPdfDocument.cpp b/gb.pdf/src/CPdfDocument.cpp index 176284f1..b08e5528 100644 --- a/gb.pdf/src/CPdfDocument.cpp +++ b/gb.pdf/src/CPdfDocument.cpp @@ -56,6 +56,10 @@ #include "UTF.h" #endif +#if POPPLER_VERSION_25_12_0 +#define getLength size +#endif + /***************************************************************************/ static CPDFRECT *create_rect(void) -- 2.30.2